{% extends "bet_base.html" %}
{% block extra_styles %}
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}styles/style2.css" />
{%endblock%}
{% block content %}
<div id="maincontent">
<h1> Bets Confirmation Page </h1>
 <div class="intro">
 You just made the following bets. Share them on facebook or twitter!

 </div>
 <br>
 

<div class="bets">
<h2> Bets </h2>
{% if betcount == 0 %}
You already made this bet.
{%else%}
<table>
  <thead>
 <tr>
 <th> Bet Description </th>
 <th> Price </th>
 <th> Expires </th>
 <th> Share </th>
 </tr>
 </thead>
 <tbody>
 {% for bet in betlist %}
 <tr>
 <td>{{bet.description}}</td>
 <td>${{bet.price}}</td>
 <td>
{{bet.expired}}
</td>
<td><script>function fbs_click() {u='http://www.bettorpolitics.com/share/{{bet.id}}';t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_link { padding:2px 0 0 20px; height:16px; background:url(http://static.ak.facebook.com/images/share/facebook_share_icon.gif?6:26981) no-repeat top left; }</style><a rel="nofollow" href="http://www.facebook.com/share.php?u=<;url>" onclick="return fbs_click()" target="_blank" class="fb_share_link">Share on Facebook</a> <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.bettorpolitics.com" data-text="I just made the following bet on BettorPolitics: {{bet.description}}" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td>
</tr>
 {% endfor %}
 </tbody>
 </table>
{%endif%}

</div>


{% endblock %}


